//
//  Setting.swift
//  App_Profile
//
//  Created by 蒋晨成 on 2022/2/7.
//

import Foundation
import UIKit

struct Setting {
    let title: String
    let detail: String?
    let icon: UIImage?
    let url: String?
    let showIndicator: Bool
    let isOn: Bool
    let showSwitch: Bool

    init(title: String, detail: String? = nil, icon: UIImage? = nil, url: String? = nil, showIndicator: Bool = true, showSwitch: Bool = false, isOn: Bool = false) {
        self.title = title
        self.detail = detail
        self.url = url
        self.icon = icon
        self.showIndicator = showIndicator
        self.showSwitch = showSwitch
        self.isOn = isOn
    }
}
